/**
 * Created by feimao on 15-11-30.
 */
app.controller('chooseMenuCtrl',function($scope,$location){
    if(localStorage.shop=='KFC'){
        $scope.menus=[
            {item:'田园鸡腿堡', price:'10.00'},
            {item:'黄金咖喱猪排饭',price:'23.50'},
            {item:'意式肉酱肉丸饭',price:'16.00'},
            {item:'老北京鸡肉卷',price:'14.00'},
            {item:'劲脆鸡腿堡',price:'15.00'}
        ]
    }
    if(localStorage.shop=='成都小吃'){
        $scope.menus=[
            {item:'四川担担面', price:'8.00'},
            {item:'鱼香肉丝盖浇饭',price:'11.00'},
            {item:'宫爆鸡丁盖浇饭',price:'10.00'}
        ]
    }
    if(localStorage.shop=='7-11'){
        $scope.menus=[
            {item:'豪华家庭大批萨', price:'28.00'},
            {item:'北京千年臭豆腐',price:'15.00'},
            {item:'美国加州牛肉拉面',price:'12.00'}
        ]
    }
    $scope.goToUrl=function(path){
        $location.path(path);
    };
    $scope.save=function(item,price){
        localStorage.menu=item;
        localStorage.price=price;
    };
});